package org.aom.dao.menu;

import java.util.List;
import java.util.Set;

import org.aom.entity.menu.Module;
import org.springframework.stereotype.Repository;
import org.springside.modules.orm.hibernate.HibernateDao;
@Repository
public class ModuleDao extends HibernateDao<Module, Long>{

	public List<Module> findEntitysByIds(Set<Long> mIds){
		StringBuffer strbf=new StringBuffer();
		for(Long pk:mIds){
			strbf.append(pk+",");
		}
		String parms=strbf.substring(0, strbf.length()-1).toString();
		return find("from Module as entity where entity.id in("+parms+")");	
	}
}
